<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/8 0008
  Time: 16:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/common/tagPage.jsp" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="modal-footer no-margin-top">

    <ul class="pagination pull-right no-margin">
        <li>
            <a href="#">
               <span style="color: red;font-weight: bold;"> 第${page.currentPageNum}页/共${page.totalPage}页 </span>
            </a>
        </li>
        <li>
            <a href="#">
                <span style="color: red;font-weight: bold;">共${page.totalRecords}条数据</span>
            </a>
        </li>
        <li>
            <a href="${pageContext.request.contextPath}${page.uri}&pageNo=1">
                首页
            </a>
        </li>
        <li class="prev">
            <a href="${pageContext.request.contextPath}${page.uri}&pageNo=${page.prePageNum}">
                <i class="icon-double-angle-left"></i>
            </a>
        </li>
            <c:forEach begin="${page.startPage}" end="${page.endPage}" var="num">
        <li class="<c:if test="${page.currentPageNum == num}">active</c:if>">
          <a href="${pageContext.request.contextPath}${page.uri}&pageNo=${num}">${num}</a>
        </li>

            </c:forEach>

        <li class="next">
            <a href="${pageContext.request.contextPath}${page.uri}&pageNo=${page.nextPageNum}">
                <i class="icon-double-angle-right"></i>
            </a>
        </li>
        <li>
            <a href="${pageContext.request.contextPath}${page.uri}&pageNo=${page.totalPage}">
                尾页
            </a>
        </li>
        <li>
            <div style="float: left;">
                <form action="${pageContext.request.contextPath}${page.uri}" method="post">
            <div style="width:45px;float: left;">
               <input type="text" name="pageNo" style="height: 32px;" placeholder="页数" class="form-control search-query"/>
            </div>
            <button type="submit" class="btn btn-sm btn-success" style="height: 32px;width: 50px;">
                跳转
            </button>
                </form>
        </div>
        </li>
    </ul>
</div>
</body>
</html>
